<?php
	abstract class user {
		private $id;
		private $name;
		private $vorname;
		private $strasse;
		private $hausnummer;
		private $plz;
		private $ort;
		private $mail;
		
		function __construct( $id ){
			$this->name = strval($con->get("users", $id, "name"));
			$this->vorname = strval($con->get("users", $id, "vorname"));
			$this->strasse = strval($con->get("users", $id, "strasse"));
			$this->hausnummer = strval($con->get("users", $id, "hausnummer"));
			$this->plz = strval($con->get("users", $id, "plz"));
			$this->ort = strval($con->get("users", $id, "ort"));
			$this->aktiv = boolval($con->get("users", $id, "aktiv"));
			$this->mail = strval($con->get("users", $id, "mail"));
		}

		public function getName(){
			return $this->name;
		}
		
		public function setName($name){
			$this->name = $name;
			return;
		}
		
		public function setVorname($vorname){
			$this->vorname = $vorname;
			return;
		}
		
		public function getVorname(){
			return $this->vorname;
		}
		
		public function setStrasse($strasse){
			$this->strasse = $strasse;
			return;
		}
		
		public function getStrasse(){
			return $this->strasse;
		}
		
		public function setHausnummer($hausnummer){
			$this->hausnummer = $hausnummer;
			return;
		}
		
		public function getHausnummer(){
			return $this->Hausnummer;
		}
		
		public function setPLZ($plz){
			$this->plz = $plz;
			return;
		}
		
		public function getPLZ(){
			return $this->plz;
		}
		
		public function setOrt($ort){
			$this->ort = $ort;
			return;
		}
		
		public function getOrt(){
			return $this->ort;
		}
		
		public function setMail($mail){
			$this->mail = $mail;
			return;
		}
		
		public function getMail(){
			return $this->mail;
		}
	}
	
	class mitglied extends user {
		private $gdatum_tag;
		private $gdatum_monat;
		private $gdatum_jahr;
		private $gewicht;
		private $aktiv;
		private $groesse;
		private $beitrag_id;
		
		function __construct( $id ){
			parent::__construct($id);
			$this->gewicht = doubleval($con->get("mitglieder", $id, "gewicht"));
			$this->groesse = intval($con->get("mitglieder", $id, "groesse"));
		}
		
		public function setGewicht($gewicht){
			$this->gewicht = $gewicht;
			return;
		}
		
		public function getGewicht(){
			return $this->gewicht;
		}
		
		public function setGroesse($groesse){
			$this->groesse = $groesse;
			return;
		}
		
		public function getGroesse(){
			return $this->groesse;
		}
		
		public function setAktiv($aktiv){
			$this->aktiv = $aktiv;
			return;
		}
		
		public function getAktiv(){
			return $this->aktiv;
		}
	}
	
	class trainer extends user {
		
	}
?>